// mysql配置文件 根据环境变量来配置(真实开发切换地址)
let MY_SQL_CONFIG
if (process.env.NODE_ENV === 'production') {
  MY_SQL_CONFIG = {
    host: 'localhost',
    user: 'root',
    password: 'aa123456',
    database: 'blog',
    port: 3306,
  }
}
if (process.env.NODE_ENV === 'development' || !process.env.NODE_ENV) {
  MY_SQL_CONFIG = {
    host: 'localhost',
    user: 'root',
    password: 'aa123456',
    database: 'blog',
    port: 3306,
  }
}
module.exports = MY_SQL_CONFIG
